<?php

/**
 * Description of apputil
 *
 * @author jirapatjantsakool
 */
class apputil {
	
    //common
    public static function getJsonDataResultUtil($lists, $root) {
        $json = json_encode($lists);
        return '{"' . $root . '" :' . $json . '}';
    }

	public static function getDateStringFormat($date, $format) {
		return date($format, strtotime($date));
	}

}
